<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h4>图片与文件处于同一路径</h4>
    <img src="猫.jpg" alt="">
    <h4>图片在文件的下一级路径下</h4>
    <img src="img/狗.jpg" alt="">
    <h4>图片位于文件的上一级路径</h4>
    <img src="../佩奇.jpg" alt="">
</body>
</html>